<?php 
/*
Template Name: Internship Result
*/
get_header();
$this_is_page=true;
?>

 <!-- start: middlecontent -->
<div class="midcontent">
	<div class="container_12">
               <?php
                        $current_post=$post->ID;
            ?>
        <div class="grid_3 ">
                <!-- Start: Leftpart -->
                <div class="content">
                    <!-- Start: content -->
                    <div class="sidebarsubnav">
                          <p><?php the_title(); ?></p>
                                <?php
                                /*
                                * displaying sup pages
                                */
                                $children = wp_list_pages("title_li=&child_of=".$current_post."&echo=0&depth=1&sort_column=menu_order");
                                if ($children) { 
                                ?>
                                        <ul id="sub_menu">
                                            <?php echo $children; ?>
                                        </ul>
                                <?php } else {
                                   $parent_post=$post->post_parent;
                                 
                                   $sibling = wp_list_pages("title_li=&child_of=".$parent_post."&echo=0&depth=1&sort_column=menu_order");
  
                                    if ($sibling) { 
                                    ?>
                                            <ul id="sub_menu">
                                                <?php echo $sibling; ?>
                                            </ul>
                                    <?php } 
                                } ?>
                          
                          
                    </div>
                    <!-- end: content -->	
                </div>
                <!-- End: Leftpart -->
            </div>
    	<!-- Start: Rightpart -->
    	<div class="grid_9">
      		<div class="content">
            <!-- start: content -->  
				<div id="location">
                            <!-- [breadcrumb] -->
                                    当前位置: <a href="<?php bloginfo('url'); ?>" title="<?php echo bloginfo('name');?>">安全防范实践教学基地运行与管理中心</a> \
                                    <?php  breadcrumb($post->ID); ?>
                            <!--/ [breadcrumb] -->
                            </div>
                <div id="info">
                    <h2><?php the_title(); ?></h2>
                    <div class="meta">
                       <a href=#  onClick="javascript:window.external.AddFavorite(document.URL,document.title);return false">[收藏]</a> <a href="javascript:window.print();">[打印]</a>  <a href="javascript:window.close();">[关闭]</a>
                    </div>
               
                      <?php
				$query_string = "cat=9";
				
				query_posts($query_string);
                      ?>
                 
                        <?php 
			if (have_posts()) : while (have_posts()) : the_post();?>

                                   <div class="texttitle"><span class="lititle"><a href="<?php the_permalink();?>"><?php the_title(); ?></a> </span></div>
                                
			<?php endwhile; ?>
			<!-- /portfolio boxes -->
                        
			<?php else: ?>
				<p>No item found in this category.</p>
			<?php endif; ?>
                
                </div>
			<!-- end: content -->					
      		</div>
		</div>
		<!-- end: Rightpart -->	
	</div>
</div>
<!-- end: middlecontent -->

<div class="clear">&nbsp;</div>

<?php get_footer(); ?>